package com.atguigu.boot_redis05_cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件拿到线程池配置参数
 * @author gcq
 * @Create 2020-11-08
 */
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    /**
     * 核心线程数
     */
    private Integer coreSize;
    /**
     * 最大数量
     */
    private Integer maxSize;
    /**
     * 存活时间
     */
    private Integer KeepAliveTime;

}